import request from "@/src/utils/request.ts";
interface LoginInfo {
    token : string
}
//添加教练
export async function addCoach(data) {
    const response = await request.post("/sys/sysUserCoachInfo/coach/improve", data);
    return response;
}
//添加学员
export async function addStu(data) {
    const response = await request.post("/sys/sysUserStuInfo/stu/improve", data);
    return response;
}
//获取学员信息
export async function getStuInfo(data) {
    const response = await request.get("/sys/sysUserStuInfo/stu/getStuInfo", data);
    return response;
}
//查询订单价格
export async function getPrice(data) {
    const response = await request.post("/sys/orderInfo/getPrice", data);
    return response;
}
//约车
export async function submitOrder(data) {
    const response = await request.post("/sys/orderInfo/stu/submit", data);
    return response;
}
//获取学员订单
export async function getOrderList(data) {
    const response = await request.get("/sys/orderInfo/stu/getOrderList", data);
    return response;
}
//教练接单
export async function receiveOrder(data) {
    const response = await request.get("/sys/orderInfo/coach/receive", data);
    return response;
}
//教练订单查询
export async function getCoachOrderList(data) {
    const response = await request.get("/sys/orderInfo/coach/getOrderList", data);
    return response;
}
//订单池查询
export async function getPageList(data) {
    const response = await request.get("/sys/orderInfo/pool/getPageList", data);
    return response;
}
//首付款
export async function getMobileWxPay(data) {
    const response = await request.post("/sys/orderInfo/first/getMobileWxPay", data);
    return response;
}
//尾款
export async function getFinalMobileWxPay(data) {
    const response = await request.post("/sys/orderInfo/final/getMobileWxPay", data);
    return response;
}
//获取首页教练数据
export async function getCoachList(data) {
    const response = await request.get("/sys/sysUserCoachInfo/wx/getCoachList", data);
    return response;
}
//获取banner
export async function getBanner(data) {
    const response = await request.get("/sys/banner/wx/getList", data);
    return response;
}
//获取省市区
export async function getTree(data) {
    const response = await request.get("/sys/category/getTree", data);
    return response;
}
//修改用户角色
export async function updateUserType(data) {
    const response = await request.post("/sys/user/updateUserType", data);
    return response;
}
//获取教练详情
export async function getDetail(data) {
    const response = await request.get("/sys/sysUserCoachInfo/getDetail", data);
    return response;
}
//通过id查询教练信息
export async function getCoachInfo(data) {
    const response = await request.get("/sys/sysUserCoachInfo/queryById", data);
    return response;
}